﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.AttrTemplate.Model
{
    public class AttrTemplateAdd : AttrTemplateSet
    {
        /// <summary>
        /// 类目ID
        /// </summary>
        [NumValidate("shop.category.id.error", 1)]
        public long CategoryId { get; set; }

        /// <summary>
        /// 父ID
        /// </summary>
        [NumValidate("shop.attr.template.id.error", 0)]
        public long ParentId { get; set; }

        /// <summary>
        /// 是否目录
        /// </summary>
        public bool IsDir { get; set; }

    }
}
